import gameApi  from './gameActivityController.d' 
import request from './request'

/** 删除活动 */
export function gameCenterdelActivity(params: gameApi.gameApi.gameActivityController.GameActivityIdReqVo) {
	return request.post<any>('/gameCenter/delActivity',params)
}

/** 天天返现导入模板下载 */
export function gameCenterfddownloadTemplate(){
	return request.get<any>('/gameCenterfd/downloadTemplate', {})
}

/** 导出游戏配置信息 */
export function gameCenterexport(params: {gameTemplateType:string,id:number,}) {
	return request.get<any>('/gameCenter/export',params)
}

/** 导入游戏配置信息 */
export function gameCenterimport(params: {file:FormData}) {
	return request.post<number>('/gameCenter/import',params)
}

/** 新增活动 */
export function gameCenterinsertActivity(params: gameApi.gameApi.gameActivityController.GameActivityVo) {
	return request.post<any>('/gameCenter/insertActivity',params)
}

/** 查询活动列表 */
export function gameCenterqueryActivityList(params: gameApi.gameApi.gameActivityController.GameActivityPageQueryVo) {
	return request.post<any>('/gameCenter/queryActivityList',params)
}

/** 查询全部活动列表 */
export function gameCenterqueryAllActivityList(){
	return request.post<gameApi.gameApi.gameActivityController.GameAllList[]>('/gameCenter/queryAllActivityList', {})
}

/** 通过模板类型查询活动列表 */
export function gameCenterqueryListByTemplfdaateType(params: gameApi.gameApi.gameActivityController.GameActivityListReqVo) {
	return request.post<any>('/gameCenter/queryListByTemplfdaateType',params)
}

/** 天天返现奖池解析（导入excel） */
export function gameCenterreadReturnCaavdsshExcel(params: {excel:FormData}) {
	return request.post<gameApi.gameApi.gameActivityController.ttImoportVo>('/gameCenter/readReturnCaavdsshExcel',params)
}

/** 修改活动 */
export function gameCenterupdateActivity(params: gameApi.gameApi.gameActivityController.GameActivityVo) {
	return request.post<any>('/gameCenter/updateActivity',params)
}

/** 修改前查询 */
export function gameCenterupdateActivityQuery(params: gameApi.gameApi.gameActivityController.GameActivityIdReqVo) {
	return request.post<any>('/gameCenter/updateActivityQuery',params)
}

/** 更新活动状态 */
export function gameCenterupdateStatus(params: gameApi.gameApi.gameActivityController.GameActivityStatusVo) {
	return request.post<any>('/gameCenter/updateStatus',params)
}

